Skip to content

[Fix] Generate paths for stream properties in base types of entities - #110

Merged
Irvine Sunday (irvinesunday) merged 3 commits into
masterfrom
is/media-stream-paths-fix
Aug 18, 2021
Merged

Irvine Sunday (irvinesunday) merged 3 commits into
masterfrom
is/media-stream-paths-fix

Conversation

@irvinesunday

Copy link
Copy Markdown
Contributor

Fixes #109
Fixes https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/637

This PR:

  • Updates the ODataPathProvider.cs to ensure generation of paths for stream properties declared both in the target type definitions and their base types.
  • Updates the ODataPathProviderTests.cs to validate the above. Also refactors the target test for readability and conciseness.
  • Refactors the MediaEntityOperationalHandler.cs class and its derived classes to use the abstraction -
    ODataNavigationSourceSegment to define the NavigationSourceSegment for a path. This helps in general maintainability and code conciseness.

@xuzhg

Copy link
Copy Markdown
Contributor

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug A broken experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paths to access Stream properties are not generated when property is in a base type.

2 participants